<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif; font-size:12px;">
<h1>List All Task </h1>
<p><a href="/staff/create-task" target="_blank">Create A Task </a><br />
  <br />
Creator , Responsier , Assign To Staff , Title , Link, Repeat , Comment </p>

<table width="1600" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <th rowspan="2" scope="col">NO.</th>
    <th rowspan="2" scope="col">Creator</th>
    <th rowspan="2" scope="col">Date</th>
    <th rowspan="2" scope="col">Assign To</th>
    <th rowspan="2" scope="col">Responsier</th>
    <th rowspan="2" scope="col">Title</th>
    <th rowspan="2" scope="col">Link</th>
    <th colspan="5" scope="col">Repeat</th>
    <th rowspan="2" scope="col" style="width:300px;">Comment</th>
    <th rowspan="2" scope="col">Action</th>
  </tr>
  <tr>
    <th scope="col">Month</th>
    <th scope="col">Date</th>
    <th scope="col">Every(?)Week</th>
    <th scope="col">Week Day (1 = Monday)</th>
    <th scope="col">Cycle</th>
  </tr>
  
  <?php 
  if(!empty($this->taskList)){
  foreach($this->taskList as $k => $v){
  ?>
  <tr>
    <td><?php echo $k + 1;?></td>
    <td><?php echo $v['create_by']?></td>
    <td><?php echo  $v['create_date']?></td>
    <td><?php echo  $v['id_staff']?></td>
    <td><?php echo  $v['responsier']?></td>
    <td><?php echo  $v['title_task']?></td>
    <td><?php echo  $v['link_task']?></td>
    <td><?php echo  $v['repeat_month']?></td>
    <td><?php echo  $v['repeat_date']?></td>
    <td><?php echo  $v['repeat_week']?></td>
    <td><?php echo  $v['repeat_week_day']?></td>
    <td><?php echo  $v['repeat_cycle']?></td>
    <td><?php echo  $v['comment_task']?></td>
    <td align="center"><form action="" method="post">
      <input type="hidden" name="id_task" id="id_task" value="<?php echo $v['id_task']?>" />
    <input name="btn_del" type="submit" value="DELETE" id="btn_del" onclick="javascript:return confirm('Are you sure you want to delete This Task ?')" /></form></td>
  </tr>
  <?php }}?>
</table>

<p>&nbsp;</p>
</body>
</html>
